﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch4_
{
    class Boyfriend: People
    {
        int lovingDuration;
        public Boyfriend(string name, int lovingDuration)
            :base(name)
        {
            this.lovingDuration = lovingDuration;
        }
        public override void showSelf()
        {
            Console.WriteLine("name = {0}, lovingDuration = {1}",
                name, lovingDuration);
        }
    }
}
